package com.tomtop.dohttp.youdao.api.impl;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import com.tomtop.core.dorequest.DoHttpRequest;
import com.tomtop.core.dorequest.DoHttpRequest.judge;
import com.tomtop.dohttp.youdao.api.YoudaoApi;
import com.tomtop.dohttp.youdao.model.YoudaoRelust;

@Service
@DoHttpRequest(hostKey="youdao",version="1.1",manuallyprocessed=judge.no,iscache=judge.no)
public class YoudaoApiImpl implements YoudaoApi {

	@Override
	@DoHttpRequest(path="/openapi.do")
	public YoudaoRelust fanyi(@RequestParam(name="q") String query,@RequestParam String keyfrom,@RequestParam String key,@RequestParam String type,@RequestParam String doctype) {
		return null;
	}

	@Override
	@DoHttpRequest(path="/openapi.do")
	public YoudaoRelust fanyi1(@RequestParam(name="q") String query,@RequestParam String keyfrom,@RequestParam String key,@RequestParam String type,@RequestParam String doctype) {
		return null;
	}
}
